//
//  SCNetManger.m
//  Assembly
//
//  Created by 葛悦彣 on 2023/11/15.
//

#import "SCNetManger.h"
#import "SCUrl.h"

@implementation SCNetManger

///http://192.168.3.209:6001/   
+ (NSString *)URLStringAddBaseString:(NSString *)urlString {
    return [NSString stringWithFormat:@"%@%@", @"https://aq-huz-api.jie-xin.com", urlString];

//    return [NSString stringWithFormat:@"%@%@", @"http://192.168.3.145:6001", urlString];
}
+ (NSString *)LTURLStringAddBaseString:(NSString *)urlString {
    return [NSString stringWithFormat:@"%@%@", @"http://192.168.3.200:8080", urlString];
}

///处理信息
+ (BOOL)AFNWithError:(NSError *)error{
    if(error){
        NSData *errorData = [error.userInfo objectForKey:AFNetworkingOperationFailingURLResponseDataErrorKey];
        NSString * responseString = [[NSString alloc] initWithData:errorData encoding:NSUTF8StringEncoding];
        NSDictionary * dict = [DTKTool dictionaryWithJsonString:responseString];
        if([dict objectForKey:@"code"]){
            NSString * code = [NSString stringWithFormat:@"%@",[dict objectForKey:@"code"]];
            if(code.intValue == 401 || code.intValue == 402){
                [UserInfoModel deleteAccount];
                return true;
            }
        }
        if([dict objectForKey:@"message"]){
            NSString * message = [dict objectForKey:@"message"];
            if([message isKindOfClass:NSString.class] && message.length > 0){
                [[DTKTool getCurrentVC].view showWarning:message];
            } else {
                [[DTKTool getCurrentVC].view showWarning:@"网络异常"];
            }
        }
        return true;
    }
    return false;
}




///app登录
+ (NSURLSessionDataTask *)PostAppAppLoginWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{

    NSString *path = [self URLStringAddBaseString:HTTP_AppAppLogin];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"app登录error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}



///短信验证码校验以及密码修改
+ (NSURLSessionDataTask *)PostAppCheckSmsCodeWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{

    NSString *path = [self URLStringAddBaseString:HTTP_AppCheckSmsCode];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"短信验证码校验以及密码修改error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///获取短信验证码
+ (NSURLSessionDataTask *)GETAppGetSmsCodeWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{

    NSString *path = [self URLStringAddBaseString:HTTP_AppGetSmsCode];
    return [self GET:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"获取短信验证码:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}



///根据字典编码获取字典数据
+ (NSURLSessionDataTask *)PostDictGetDictTextDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{

    NSString *path = [self URLStringAddBaseString:HTTP_DictGetDictText];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"根据字典编码获取字典数据error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///app-web-获取全部的养殖场
+ (NSURLSessionDataTask *)PostuserAccountGetBreedFarmWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_userAccountGetBreedFarm];
    return [self GET:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"获取全部的养殖场error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///获取用户养殖场
+ (NSURLSessionDataTask *)PostsysDepartQueryTreeBreedFarmWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_sysDepartQueryTreeBreedFarm];
    return [self GET:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"获取用户养殖场error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
///切换-选择部门
+ (NSURLSessionDataTask *)PostappSelectAppDepartsWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_appSelectAppDepart];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"切换-选择部门error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///app首页任务数量
+ (NSURLSessionDataTask *)PostHomeAppTaskCountWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{

    NSString *path = [self URLStringAddBaseString:HTTP_HomeAppTaskCount];
    return [self GET:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"app首页任务数量error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///app首页室外池塘统计
+ (NSURLSessionDataTask *)PostHomeGetAppOutDoorPondStatisticsWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    NSString *path = [self URLStringAddBaseString:HTTP_HomeGetAppOutDoorPondStatistics];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"app首页池塘列表统计error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}



///app首页温室编组统计-列表
+ (NSURLSessionDataTask *)PostGetAppTissueStatisticsWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    NSString *path = [self URLStringAddBaseString:HTTP_HomeGetAppTissueStatistics];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"a首页二级编组统计-列表error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///app首页温室池塘统计
+ (NSURLSessionDataTask *)PostHomeGetAppGreenHousePondStatisticsWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    NSString *path = [self URLStringAddBaseString:HTTP_HomeGetAppGreenHousePondStatistics];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"app首页温室池塘统计error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


//
///模板管理-公共模板列表
+ (NSURLSessionDataTask *)PostCommonListWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{

    NSString *path = [self URLStringAddBaseString:HTTP_CommonList];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"模板管理-公共模板列表error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///模板管理-个人模板列表
+ (NSURLSessionDataTask *)PostPersonalListWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{

    NSString *path = [self URLStringAddBaseString:HTTP_PersonalList];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];

    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"模板管理-公共模板列表error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///个人模板-选择公共模板
+ (NSURLSessionDataTask *)PostPullListWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{

    NSString *path = [self URLStringAddBaseString:HTTP_PullList];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"个人模板-选择公共模板error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///公共模板-详情
+ (NSURLSessionDataTask *)PostMBDetailWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{

    NSString *path = [self URLStringAddBaseString:HTTP_MBDetail];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];

    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"公共模板-详情error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///个人模板-详情
+ (NSURLSessionDataTask *)PostGRMBDetailWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{

    NSString *path = [self URLStringAddBaseString:HTTP_GRMBDetail];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];

    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"公共模板-详情error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///个人模板-新增工作任务-任务列表
+ (NSURLSessionDataTask *)PostMBTaskTypeWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_MBTaskType];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];

    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"个人模板-新增工作任务error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}



///个人模板-选择任务类型-选择后给任务列表
+ (NSURLSessionDataTask *)PostMBselectTypeWithDict:(NSArray *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_MBselectType];

    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"个人模板-选择任务类型-选择后给任务列表error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}



///个人模板-新增
+ (NSURLSessionDataTask *)PostTemplateAddWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_TemplateAdd];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"个人模板-新增error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}



///个人模板名称重复校验
+ (NSURLSessionDataTask *)PostTemplateCheckWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_TemplateCheck];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"个人模板名称重复校验error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///个人模板-编辑
+ (NSURLSessionDataTask *)PostTemplateEditWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_TemplateEdit];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];

    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"个人模板-新增error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}



///人员管理
+ (NSURLSessionDataTask *)PostAppAccountGetAppUserManageWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_AppAccountGetAppUserManage];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"人员管理error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
///人员管理人员详情
+ (NSURLSessionDataTask *)PostAppAccountGetAppUserManageDetailWithID:(NSString *)ID andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:[NSString stringWithFormat:@"%@%@",HTTP_AppAccountGetAppUserManageDetail,ID]];
    return [self POST:path parameters:nil headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"人员管理error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///获取app用户日志带参
+ (NSURLSessionDataTask *)PostcardGetUserLogModelWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_cardGetUserLogModel];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"获取app用户日志带参error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///获取岗位职责
+ (NSURLSessionDataTask *)PostappAccountGetPositionsWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_appAccountGetPositions];
    return [self GET:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"获取app用户日志带参error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///池塘类型下拉框列表
+ (NSURLSessionDataTask *)PostPondTypeGetOptionWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_PondTypeGetOption];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];

    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"池塘类型下拉框列表error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///池塘编组完整下拉框
+ (NSURLSessionDataTask *)PostPondTissueGetPondTissueListWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_PondTissueGetPondTissueList];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];

    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"池塘编组完整下拉框error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///养殖种类下拉框
+ (NSURLSessionDataTask *)PostBreedTypeGetOptionWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_BreedTypeGetOption];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];

    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"养殖种类下拉框error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///选择模板下拉框
+ (NSURLSessionDataTask *)PostTemplateOptionListWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_TemplateOptionList];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];

    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"养殖种类下拉框error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///判断是否有重名
+ (NSURLSessionDataTask *)PostPondManageIsDuplicateNameWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_PondManageIsDuplicateName];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];

    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"判断是否有重名error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///12.延期下发
+ (NSURLSessionDataTask *)PostponingWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_Postponing];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"延期下发error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
///13.继续下发
+ (NSURLSessionDataTask *)ContinuePondTaskWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_ContinuePondTask];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"延期下发error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///14.塘口延期列表
+ (NSURLSessionDataTask *)PostRecordListWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_RecordList];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"塘口延期列表error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
///池塘编组模糊查询
+ (NSURLSessionDataTask *)PostPondTissueTissueOpFilterListWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_PondTissueTissueOpFilterList];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"池塘编组模糊查询error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///新增池塘
+ (NSURLSessionDataTask *)PostPondManageAddPondWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_PondManageAddPond];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];

    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"新增池塘error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
///获取职务和当前养殖场用户
+ (NSURLSessionDataTask *)PostGetPositionAndUserByOrgCodeWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_GetPositionAndUserByOrgCode];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];

    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"获取职务和当前养殖场用户error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}



///附件上传
+ (void)PostuploadFilesWithImg:(UIImage *)img CompletionHandler:(void(^)(NSString * url,NSString * previewUrl, UIImage * img))block{
    [[DTKTool getCurrentVC].view showBusyHUD];
    NSString *path = [self URLStringAddBaseString:HTTP_uploadFiles];
    AFHTTPRequestSerializer * serializer = [AFHTTPRequestSerializer serializer];
    [serializer setValue:[UserInfoModel shared].token forHTTPHeaderField:@"X-Access-Token"];
    NSMutableURLRequest * request = [serializer multipartFormRequestWithMethod:@"POST" URLString:path parameters:nil constructingBodyWithBlock:^(id<AFMultipartFormData> formData) {
        //        for (int i = 0; i < photos.count; i++) {
        NSDateFormatter *formatter=[[NSDateFormatter alloc]init];
        formatter.dateFormat=@"yyyyMMddHHmmss";
        NSString *str=[formatter stringFromDate:[NSDate date]];
        NSString *fileName=[NSString stringWithFormat:@"%@.jpg",str];
        UIImage *image = img;
        NSData *imageData = UIImageJPEGRepresentation(image, 0.28);
        [formData appendPartWithFileData:imageData name:[NSString stringWithFormat:@"upload"] fileName:fileName mimeType:@"image/jpeg"];
        //        }
    } error:nil];
    
    AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]];
    //设置服务器返回内容的接受格式
    AFHTTPResponseSerializer *responseSer = [AFHTTPResponseSerializer serializer];
    responseSer.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript",@"text/html", nil];
    manager.responseSerializer = responseSer;
    
    NSURLSessionUploadTask *uploadTask = [manager uploadTaskWithStreamedRequest:request progress:nil completionHandler:^(NSURLResponse *response, id responseObject, NSError *error) {
        [[DTKTool getCurrentVC].view hideBusyHUD];

        if (error) {
            NSLog(@"Error: %@", error);
            [[DTKTool getCurrentVC].view showWarning:@"网络错误，请稍后上传"];
        } else {
            //把照片放进框内
            NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:responseObject options:NSJSONReadingMutableContainers error:nil];
            if ([[dic valueForKey:@"success"] boolValue]) {
                //                ImageModel *model = [ImageModel mj_setKeyValues:responseObject];
                [[DTKTool getCurrentVC].view showWarning:@"上传成功"];
                if(block){
                    NSDictionary * dict = [dic valueForKey:@"result"];
                    block([dict valueForKey:@"url"],[dict valueForKey:@"previewUrl"],img);
                }
            }else{
                [[DTKTool getCurrentVC].view showWarning:[dic valueForKey:@"message"]];
           
            }
            
        }
    }];
    
    [uploadTask resume];
    
}
+ (void)PostuploadFilesWithData:(NSData *)data CompletionHandler:(void(^)(NSString * url,NSString * previewUrl, NSData * data))block{
    [[DTKTool getCurrentVC].view showBusyHUD];
    NSString *path = [self URLStringAddBaseString:HTTP_uploadFiles];
    AFHTTPRequestSerializer * serializer = [AFHTTPRequestSerializer serializer];
    [serializer setValue:[UserInfoModel shared].token forHTTPHeaderField:@"X-Access-Token"];
    NSMutableURLRequest * request = [serializer multipartFormRequestWithMethod:@"POST" URLString:path parameters:nil constructingBodyWithBlock:^(id<AFMultipartFormData> formData) {
        //        for (int i = 0; i < photos.count; i++) {
        NSDateFormatter *formatter=[[NSDateFormatter alloc]init];
        formatter.dateFormat=@"yyyyMMddHHmmss";
        NSString *str=[formatter stringFromDate:[NSDate date]];
        NSString *fileName=[NSString stringWithFormat:@"%@.wav",str];
        [formData appendPartWithFileData:data name:[NSString stringWithFormat:@"upload"] fileName:fileName mimeType:@"amr/mp3/wmr"];
        //        }
    } error:nil];
    
    AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]];
    //设置服务器返回内容的接受格式
    AFHTTPResponseSerializer *responseSer = [AFHTTPResponseSerializer serializer];
    responseSer.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript",@"text/html", nil];
    manager.responseSerializer = responseSer;
    
    NSURLSessionUploadTask *uploadTask = [manager uploadTaskWithStreamedRequest:request progress:nil completionHandler:^(NSURLResponse *response, id responseObject, NSError *error) {
        [[DTKTool getCurrentVC].view hideBusyHUD];

        if (error) {
            NSLog(@"Error: %@", error);
            [[DTKTool getCurrentVC].view showWarning:@"网络错误，请稍后上传"];
        } else {
            //把照片放进框内
            NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:responseObject options:NSJSONReadingMutableContainers error:nil];
            if ([[dic valueForKey:@"success"] boolValue]) {
                //                ImageModel *model = [ImageModel mj_setKeyValues:responseObject];
                [[DTKTool getCurrentVC].view showWarning:@"上传成功"];
                if(block){
                    NSDictionary * dict = [dic valueForKey:@"result"];
                    block([dict valueForKey:@"url"],[dict valueForKey:@"previewUrl"],data);
                }
            }else{
                [[DTKTool getCurrentVC].view showWarning:[dic valueForKey:@"message"]];
           
            }
            
        }
    }];
    
    [uploadTask resume];
}


///水印上传
+ (void)PostuploadFilesWithImg:(UIImage *)img andAddress:(NSString *)address CompletionHandler:(void(^)(NSString * url,NSString * previewUrl, UIImage * img))block{
    [[DTKTool getCurrentVC].view showBusyHUD];
    NSString *path = [self URLStringAddBaseString:HTTP_uploadFilesWaterMark];
    AFHTTPRequestSerializer * serializer = [AFHTTPRequestSerializer serializer];
    [serializer setValue:[UserInfoModel shared].token forHTTPHeaderField:@"X-Access-Token"];
    NSMutableURLRequest * request = [serializer multipartFormRequestWithMethod:@"POST" URLString:path parameters:nil constructingBodyWithBlock:^(id<AFMultipartFormData> formData) {
        //        for (int i = 0; i < photos.count; i++) {
        NSDateFormatter *formatter=[[NSDateFormatter alloc]init];
        formatter.dateFormat=@"yyyyMMddHHmmss";
        NSString *str=[formatter stringFromDate:[NSDate date]];
        NSString *fileName=[NSString stringWithFormat:@"%@.jpg",str];
        UIImage *image = img;
        NSData *imageData = UIImageJPEGRepresentation(image, 0.28);
        [formData appendPartWithFileData:imageData name:[NSString stringWithFormat:@"upload"] fileName:fileName mimeType:@"image/jpeg"];
        NSDateFormatter * neformatter = [[NSDateFormatter alloc] init];
        [neformatter setDateFormat:@"YYYY-MM-dd HH:mm:ss"];
        NSDate *datenow = [NSDate date];
        NSString *currentTimeString = [neformatter stringFromDate:datenow];
        [formData appendPartWithFormData:[currentTimeString dataUsingEncoding:NSUTF8StringEncoding] name:@"time"];
        if(address){
            [formData appendPartWithFormData:[address dataUsingEncoding:NSUTF8StringEncoding] name:@"address"];
        }

        //        }
    } error:nil];
    
    AFURLSessionManager *manager = [[AFURLSessionManager alloc] initWithSessionConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]];
    //设置服务器返回内容的接受格式
    AFHTTPResponseSerializer *responseSer = [AFHTTPResponseSerializer serializer];
    responseSer.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript",@"text/html", nil];
    manager.responseSerializer = responseSer;
    
    NSURLSessionUploadTask *uploadTask = [manager uploadTaskWithStreamedRequest:request progress:nil completionHandler:^(NSURLResponse *response, id responseObject, NSError *error) {
        [[DTKTool getCurrentVC].view hideBusyHUD];

        if (error) {
            NSLog(@"Error: %@", error);
            [[DTKTool getCurrentVC].view showWarning:@"网络错误，请稍后上传"];
        } else {
            //把照片放进框内
            NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:responseObject options:NSJSONReadingMutableContainers error:nil];
            if ([[dic valueForKey:@"success"] boolValue]) {
                //                ImageModel *model = [ImageModel mj_setKeyValues:responseObject];
                [[DTKTool getCurrentVC].view showWarning:@"上传成功"];
                if(block){
                    NSDictionary * dict = [dic valueForKey:@"result"];
                    block([dict valueForKey:@"url"],[dict valueForKey:@"previewUrl"],img);
                }
            }else{
                [[DTKTool getCurrentVC].view showWarning:[dic valueForKey:@"message"]];
           
            }
            
        }
    }];
    
    [uploadTask resume];
    
}
///选择池塘列表
+ (NSURLSessionDataTask *)PostTaskSelectPondWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_TaskSelectPond];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"选择池塘列表error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///新增任务
+ (NSURLSessionDataTask *)PostTaskAddWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_TaskAdd];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"新增任务error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

/// 选择分别配置
+ (NSURLSessionDataTask *)PostTaskConfigureWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_TaskConfigure];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"选择分别配置error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///池塘详情页
+ (NSURLSessionDataTask *)PostPondManageBasicInfoWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_PondManageBasicInfo];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"池塘详情页error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///判断池塘是否有分组
+ (NSURLSessionDataTask *)PostPondManageIsGroupWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_PondManageIsGroup];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"判断池塘是否有分组error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///池塘修改详情页
+ (NSURLSessionDataTask *)PondManagePondManageDetailOneWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_PondManagePondManageDetailOne];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"判断池塘是否有分组error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///修改池塘-单
+ (NSURLSessionDataTask *)PondManageEditPondOneWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_PondManageEditPondOne];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"判断池塘是否有分组error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
///修改池塘-多
+ (NSURLSessionDataTask *)PondManageEditPondGroupWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_PondManageEditPondGroup];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"判断池塘是否有分组error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///任务列表
+ (NSURLSessionDataTask *)PostTaskListWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_TaskList];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"任务列表error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///取消任务
+ (NSURLSessionDataTask *)PostTaskCanceltWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_TaskCancel];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"取消任务error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
///转交任务
+ (NSURLSessionDataTask *)PostTaskHandoverWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_TaskHandover];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"转交任务error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}



///4.11任务管理-合并任务列表(NIJQ)(新增)
+ (NSURLSessionDataTask *)PostTaskMergeWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_TaskMerge];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"任务管理-合并任务列表error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
///查看交接详情
+ (NSURLSessionDataTask *)PostAuditGetHandoverDetailWithauditId:(NSString *)auditId andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:[NSString stringWithFormat:@"%@%@",HTTP_AuditGetHandoverDetail,auditId]];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:nil headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"查看交接详情error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
///确认接收
+ (NSURLSessionDataTask *)PostAuditConfirmHandoverWithauditId:(NSString *)auditId andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:[NSString stringWithFormat:@"%@%@",HTTP_AuditConfirmHandover,auditId]];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:nil headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"确认接收error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
///App审批列表
+ (NSURLSessionDataTask *)PostAuditGetAppAuditListWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_AuditGetAppAuditList];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"App审批列表error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///App审批数量
+ (NSURLSessionDataTask *)PostAuditGetAuditCountModelWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_AuditGetAuditCountModel];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"App审批数量error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
///撤销申请
+ (NSURLSessionDataTask *)PostAuditCancelApplyWithauditId:(NSString *)auditId andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:[NSString stringWithFormat:@"%@%@",HTTP_AuditCancelApply,auditId]];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:nil headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"撤销申请error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}



///审批同意
+ (NSURLSessionDataTask *)PostAuditAuditAgreeWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_AuditAuditAgree];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"时间状态显示error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
///审批拒绝
+ (NSURLSessionDataTask *)PostAuditAuditRefuseWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_AuditAuditRefuse];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"时间状态显示error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
///查看审核详情
+ (NSURLSessionDataTask *)PostAuditGetAuditDetailWithauditId:(NSString *)auditId andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:[NSString stringWithFormat:@"%@%@",HTTP_AuditGetAuditDetail,auditId]];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:nil headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"查看审核详情error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
/// 时间状态显示
+ (NSURLSessionDataTask *)PostTaskStatusWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_TaskStatus];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"时间状态显示error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
///池塘过滤列表
+ (NSURLSessionDataTask *)PostTaskPondListWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_TaskPondList];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"池塘过滤列表error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///交接数量
+ (NSURLSessionDataTask *)PostAuditGetHandoverCountModelWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_AuditGetHandoverCountModel];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"交接数量error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///交接列表
+ (NSURLSessionDataTask *)PostAuditGetHandoverListWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_AuditGetHandoverList];

    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"交接列表error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///告警列表
+ (NSURLSessionDataTask *)PostAlarmManageGetAlarmManageListWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_AlarmManageGetAlarmManageList];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"告警列表error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
}


///告警详情
+ (NSURLSessionDataTask *)PostAlarmManageAlarmManageDetailWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_AlarmManageAlarmManageDetail];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"告警详情error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///获取未完成的告警总数
+ (NSURLSessionDataTask *)PostAlarmManageGetAlarmPendSumWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_AlarmManageGetAlarmPendSum];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"获取未完成的告警总数error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///查询电话
+ (NSURLSessionDataTask *)PostAlarmManageGetPhoneByUserIdsWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_AlarmManageGetPhoneByUserIds];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"警告关闭error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
///警告关闭
+ (NSURLSessionDataTask *)PostAlarmManageCloseWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_AlarmManageClose];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"警告关闭error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///告警新增任务详情
+ (NSURLSessionDataTask *)PostAlarmManageAlarmAddTaskDetailModelWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_AlarmManageAlarmAddTaskDetailModel];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"告警新增任务详情error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///打卡内容加载
+ (NSURLSessionDataTask *)PostCardDetailWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_CardDetail];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"打卡内容加载error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}






///打卡内容提交
+ (NSURLSessionDataTask *)PostCardAddWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_CardAdd];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"打卡内容提交error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///上报异常
+ (NSURLSessionDataTask *)PostCardSubmitWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_CardSubmit];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"上报异常error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///获取单个池塘任务日志
+ (NSURLSessionDataTask *)PostCardGetPondTaskLogWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_CardGetPondTaskLog];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"获取单个池塘任务日志error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
}

///我的
+ (NSURLSessionDataTask *)PostAppAccountGetMyModelWithUserID:(NSString *)UserID andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:[NSString stringWithFormat:@"%@%@",HTTP_AppAccountGetMyModel,UserID]];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:@{} headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"我的error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///app-修改密码
+ (NSURLSessionDataTask *)PostAppAccountUpdatePasswordWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_AppAccountUpdatePassword];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"修改密码error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}



///App消息分类
+ (NSURLSessionDataTask *)PostsysSmsTypeListWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_sysSmsTypeList];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self GET:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"App消息分类error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
///App消息
+ (NSURLSessionDataTask *)PostsysSmsAppListWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_sysSmsAppList];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"App消息error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
///App消息详情
+ (NSURLSessionDataTask *)PostsysSmsAppQueryByIdWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_sysSmsAppQueryById];
    return [self GET:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"App消息详情error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///消息-首页最新五条未读
+ (NSURLSessionDataTask *)PostsysSmsAppIndexSmsWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_sysSmsAppIndexSms];
    return [self GET:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"App消息详情error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///App消息-已读
+ (NSURLSessionDataTask *)PostsysSmsAppIsReadWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_sysSmsAppIsRead];
    return [self GET:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"App消息-已读error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///App消息-批量已读
+ (NSURLSessionDataTask *)PostsysSmsAppBatchReadWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_sysSmsAppBatchRead];
    return [self GET:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"App消息-批量已读:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///上报极光ID
+ (NSURLSessionDataTask *)sysSmsAppUpDateRegistrationIdWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_sysSmsAppUpDateRegistrationId];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"上报极光IDerror:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}



/*--------- 学习 -----------*/
///学习列表
+ (NSURLSessionDataTask *)learnInfoGetLearnInfoListWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_learnInfoGetLearnInfoList];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"学习列表error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///推荐十条
+ (NSURLSessionDataTask *)learnInfoRecommendedWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_learnInfoRecommended];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"推荐十条error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
///一级二级类型分别拉框(一级下拉框)
+ (NSURLSessionDataTask *)learnTypeTypeOptionWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_learnTypeTypeOption];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"一级二级类型分别拉框error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///学习详情页
+ (NSURLSessionDataTask *)learnInfoEditDetailWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_learnInfoEditDetail];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"学习详情页error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///专家列表
+ (NSURLSessionDataTask *)expertGetAppExpertListWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_expertGetAppExpertList];
    return [self GET:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"专家列表error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///授权
+ (NSURLSessionDataTask *)expertEmpowerWithID:(NSString *)ID andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:[NSString stringWithFormat:@"%@%@",HTTP_expertEmpower,ID]];
    return [self POST:path parameters:nil headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"授权error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
///取消授权
+ (NSURLSessionDataTask *)expertCancelEmpowerWithID:(NSString *)ID andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:[NSString stringWithFormat:@"%@%@",HTTP_expertCancelEmpower,ID]];
    return [self POST:path parameters:nil headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"取消授权error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///查看授权码
+ (NSURLSessionDataTask *)expertLookCodeWithID:(NSString *)ID andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:[NSString stringWithFormat:@"%@%@",HTTP_expertLookCode,ID]];
    return [self POST:path parameters:nil headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPStrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"查看授权码error:%@",error);
        }else{
            response = [HTTPStrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
///电话点击累计
+ (NSURLSessionDataTask *)expertCallCountWithID:(NSString *)ID andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:[NSString stringWithFormat:@"%@%@",HTTP_expertCallCount,ID]];
    return [self POST:path parameters:nil headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPStrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"查看授权码error:%@",error);
        }else{
            response = [HTTPStrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

/*--------- 仓库 -----------*/


///仓库物品-列表信息
+ (NSURLSessionDataTask *)warehouseManageListWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_warehouseManageList];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"仓库物品-列表信息表error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///仓库物品品类下拉列表
+ (NSURLSessionDataTask *)warehousekindOptionWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_warehouseKindOption];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPArrBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"仓库物品品类下拉列表error:%@",error);
        }else{
            response = [HTTPArrBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///仓库物品信息详情
+ (NSURLSessionDataTask *)warehouseManageDetailWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_warehouseManageDetail];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"仓库物品信息详情error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///出入库-列表信息
+ (NSURLSessionDataTask *)warehouseBoundListWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_warehouseBoundList];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"出入库-列表信息error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}


///出入库详情信息
+ (NSURLSessionDataTask *)warehouseBoundDetailWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_warehouseBoundDetail];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"出入库详情信息error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///出库
+ (NSURLSessionDataTask *)warehouseManageOutWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_warehouseManageOut];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"出库error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
///入库
+ (NSURLSessionDataTask *)warehouseManageIntoWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_warehouseManageInto];
//    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"入库error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///仓库库存预警列表
+ (NSURLSessionDataTask *)warehouseAlarmGetAlarmListWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_warehouseAlarmGetAlarmList];
    [dict setObject:[UserInfoModel shared].OrgCode forKey:@"orgCode"];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"学习列表error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}

///仓库库存预警详情
+ (NSURLSessionDataTask *)warehouseAlarmGetAlarmDetailWithDict:(NSMutableDictionary *)dict andCompetionHandlerBlock:kCompetionHandlerBlock{
    NSString *path = [self URLStringAddBaseString:HTTP_warehouseAlarmGetAlarmDetail];
    return [self POST:path parameters:dict headerField:[UserInfoModel shared].token progress:^(NSProgress * _Nonnull downloadProgress) {} completionHandler:^(id responseObj, NSError *error) {
        HTTPDicBase *response;
        if ([self AFNWithError:error]) {
            NSLog(@"仓库库存预警详情error:%@",error);
        }else{
            response = [HTTPDicBase yy_modelWithJSON:responseObj];
        }
        completionHandler(response);
    }];
    
}
@end
